package com.klei.service.impl;

import com.klei.dao.ICityDao;
import com.klei.pojo.City;
import com.klei.service.ICityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CityServiceImpl implements ICityService {

    @Autowired
    private ICityDao cityDao;

    @Override
    public List<City> getAllCity() {
        return cityDao.getAllCity();
    }

    @Override
    public List<City> getAllCountry() {
        return cityDao.getAllCountry();
    }

    @Override
    public List<City> getCityByPid(int pid) {
        return cityDao.getCityByPid(pid);
    }

    @Override
    public City getCityById(int id) {
        return cityDao.getCityById(id);
    }

}
